Skip to main content

Command palette

The big power of customization comes with a powerful command palette system. This is provided by a plugin shipped with a core package.

Snippets are dedicated cells of Wolfram / WLX / Javascript which serve a single utility function. They are available from the command palette and have an access to your notebook and computational Kernel. You can see their source notebook as well as short documentation by clicking on a question mark symbol

tip

Use a shortcut for command palette Cmd + P or Ctrl + P

AI Assistant

If nothing is selected, the given text in the command palette is sent to ChatGPT that has an access to your notebook

See more detailed guide on our assistant.

note

It will ask you for a OpenAI API Key. You need to issue it first on the official openAI website

warning

An initial system prompt that given AI the knowledge of available cells, details of used libraries and etc costs 4000 tokens

In general AI can do the following

  • create, remove, evaluate, edit cells in any language
  • read notebook structure
  • see your focused cell you dropped a cursor on
  • see your selection in any editor area
  • google use WolframAlpha to fetch data from the internet

Shorts

Context menu

If you need to apply Simplify or highlight selected expressions in the code

Highlighting text is not destructive and will not alter an initial expression you had.

Uploading data

There are a few snippets used for uploading ASCII data or any arbitrary files to the folder of your notebook

This snippet was built using regular Wolfram Language.

Matrix helper

To make it easier for typing matrixes, one can use the following snippet

This snippet inserts the given matrix into the cell where your last cursor was. A snippet was made using WLX cells for better customized look.

Show available options

This snippet analyses the content of your cell from the left of your cursor position and prints Options for a given symbol

tip

Drop a cursor in the middle of a symbol of interest. You can select and edit option values inside the picker

warning

Not all options are supported for a standard library symbol of Wolfram Mathematica

This feature is aimed to slightly blur the line between code and traditional GUI interface approaches for 2D/3D graphics design

See shorts on that

It utilizes the dynamic reevaluation features of WLJS Notebook as well as powerful syntax sugar of an input editor.

  1. Select 2D or 3D list of coordinates {}
  2. Type gizmo... in the command palette
  3. Evaluate the cell
  4. Drag gizmo to the desired position and click on a check mark

It can also work in principle for most primitives

tip

Add an offset to a manipulated list, that a gizmo will not overlap with other graphics primitives. For example

Offload or (Hold will also work) is necessary here to prevent Wolfram Kernel from distributing Plus over each position of the list.

Or for 3D primitives as well

Format Wolfram Language code

This is also a code formatter available

It acts on a selected text or on the entire cell if nothing is selected

Text formatting

This snippet provides some basic tool for styling Wolfram expression, as well as text on slides, HTML and Markdown (it tries to guess the cell type and use a suitable method for each cell type)

warning

This feature is quite primitive and still in development

Take a picture

It uses your active web camera pipes a picture to Wolfram Kernel as Image object

Install Wolfram Packages from Github

If you past a url to a Github repository into command palette, which contains PacletInfo.wl file in the root directory

it will automatically install it locally in the folder of the current notebook.